Skip to content

Conversation

@ChrisUser
Copy link
Owner

Description

Added undo and redo functionality using keyboard shortcuts (Ctrl + Z, Ctrl + Y / Ctrl + Shift + Z). This includes maintaining undo and redo stacks, handling keyboard events, and updating the content and caret position accordingly.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Checklist:

  • I'm sure that this PR is not a duplicate
  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@ChrisUser ChrisUser self-assigned this Mar 1, 2025
@ChrisUser ChrisUser linked an issue Mar 1, 2025 that may be closed by this pull request
1 task
@ChrisUser ChrisUser merged commit 4d30195 into main Mar 1, 2025
2 checks passed
@ChrisUser ChrisUser deleted the feature/undo-redo branch March 1, 2025 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Undo (Ctrl+Z) Not Working After Pasting

2 participants